package com.example.ass7;

/**
 * @author Meirav Ben Izhak
 * @param <T>
 */
public class Selection<T> {
    private final String key;
    private final String message;
    private final T returnVal;

    /**
     * @param key
     *            key
     * @param message
     *            message
     * @param returnVal
     *            returnVal
     */
    public Selection(
        String key, String message, T returnVal) {

        this.key = key;
        this.message = message;
        this.returnVal = returnVal;
    }

    /**
     * @return String
     */
    public String getKey() {
        return this.key;
    }

    /**
     * @return String
     */
    public String getMessage() {
        return this.message;
    }

    /**
     * @return T
     */
    public T getReturnVal() {
        return this.returnVal;
    }

}
